#!/bin/bash
read -p "input n:" n
sum=0
for((i=1;i<=n;i++))
do
        ((sum+=$i))
done
echo "1到$n的和为：$sum"
